#ifndef								__ROTATINGBUFFER_H__
#	define							__ROTATINGBUFFER_H__

#	include							"byte.h"
#	include							<boost/circular_buffer.hpp>

class								RotatingBuffer
{
public:
	RotatingBuffer();
	~RotatingBuffer();

private:
	boost::circular_buffer<byte>	_buffer;

public:
	void							init();
	byte							read();
	void							write(byte);
	bool							empty();
	int								size();
	int								capacity();
	byte							operator[](size_t);
};

#endif								// !__ROTATINGBUFFER_H__
